﻿using System;
using System.IO;
using HtmlAgilityPack;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using HtmlAgilityPack;

namespace MagicTraderLibTest
{
    [TestClass]
    public class MagicCardMarketTest
    {
        [TestMethod]
        public void TestValideSeries()
        {
            var Url = @"https://www.magiccardmarket.eu/?mainPage=advancedSearch";
            string filename = @"Advanced Search - MagicCardMarket.htm";
            var doc = new HtmlDocument();
            doc.Load(filename);
            var nodes = doc.DocumentNode.SelectNodes("//span[@class='inputBox']");

            Assert.AreEqual(10, nodes.Count);
        }
    }
}
